package com.biomatch.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName(value = "ls_Group")
public class Group {

    @TableId(value = "id")
    private int id;

    @TableField(value = "groupId")
    private String groupId;

    @TableField(value = "name")
    private String name;

    @TableField(value = "mark")
    private String mark;

    @TableField(value = "creatorId")
    private String creatorId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "createTime")
    private Date createTime;//'创建时间'

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "updateTime")
    private Date updateTime;//'创建时间'

    @TableField(exist = false)
    private List<UserInfo> users;
}
